package com.example.novelstory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
//@ApiModel(value = "会员信息")
@TableName("vipuser")
public class VipUser {
    @ApiModelProperty
    @TableId(type = IdType.AUTO)
    public int id;
    @ApiModelProperty
    public String username;
    @ApiModelProperty
    public String email;
    @ApiModelProperty
    public String password;
    @ApiModelProperty
    public String sex;
    @ApiModelProperty
    public String city;
    @ApiModelProperty
    public String country;
    @ApiModelProperty
    public String headimgurl;
    @ApiModelProperty
    public String introduce;
    @ApiModelProperty
    public int status;
    @ApiModelProperty
    public int login;
    @ApiModelProperty
    public int login_ip;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty
    public Date login_time;
    @ApiModelProperty
    public int exp;
    @ApiModelProperty
    public int integral;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty
    public Date create_time;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty
    public Date update_time;
    @ApiModelProperty
    public int recommend;
    @ApiModelProperty
    public int viplevel;
    @ApiModelProperty
    public int recharge;
}
